package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.atguigu.eduservice.entity.vo.CourseVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author kaixuan
 * @since 2020-05-30
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseVo courseVo);

    Map<String,Object> getCourseVo(String courseId);

    String updateCourseVo(CourseVo courseVo);

    /**
     * 根据课程id查询所有关联数据
     * @param courseId
     * @return
     */
    Map<String,Object> getCoursePublishVo(String courseId);

    /**
     * 删除课程 章节 小节 视频
     * @param courseId
     * @return
     */
    boolean removeAllData(String courseId);
}
